package com.halflife.framework.participant;

import com.halflife.comeElectricity.basic.datadic.DataDic;
import com.halflife.framework.domain.BaseDomain;
import com.halflife.framework.generator.annotation.Join;
import com.halflife.framework.generator.annotation.QueryAnn;
import com.halflife.framework.generator.build.SimpleBuilder;
import com.halflife.framework.generator.build.UpdataBuilder;
import org.junit.jupiter.api.Test;

import java.util.List;

/**
 * Created by zhaoyf on 2018/11/3.
 */
@QueryAnn(mainTitle = "基础信息管理",title = "集团管理",table = "t_basic_company")
public class Company extends BaseDomain {
    @Test
    public void generate()throws Exception{
        SimpleBuilder builder = new SimpleBuilder();
        builder.buildAll(this.getClass());
    }
    @Test
    public void generateUpdate()throws Exception{
        UpdataBuilder builder = new UpdataBuilder();
        builder.buildMapper(this.getClass());
    }
    @QueryAnn(value = "名称", operate = "like",refered = true)
    private String name;
    @QueryAnn(value = "编码", operate = "like",refered = true)
    private String code;
    @QueryAnn(value = "联系人")
    private String linkMan ;
    @QueryAnn(value = "联系方式")
    private String phone;
    @QueryAnn(value = "限额")
    private Integer limitCount;
    @QueryAnn(value = "状态")
    private Integer status;
    @QueryAnn(value = "备注")
    private String memo;
    @QueryAnn(value = "部门Id",refered = true)
    private Integer departmentId;
    @QueryAnn(value = "部门",refered = true)
    @Join()
    private Department department;
    public void init(){
        this.status = 0;
        this.valid = true;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLinkMan() {
        return linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getLimitCount() {
        return limitCount;
    }

    public void setLimitCount(Integer limitCount) {
        this.limitCount = limitCount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }
}
